<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>快捷回复组件 | JwChat</title>
    <meta name="generator" content="VuePress 1.8.2">
    
    <meta name="description" content="languages is all">
    <meta name="keywords" content="vue,im,IM,聊天组件,vue组件">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="descriptione" content="基于vue开发的仿QQ聊天组件">
    
    <link rel="preload" href="/jwchatdoc/assets/css/0.styles.88dd726d.css" as="style"><link rel="preload" href="/jwchatdoc/assets/js/app.2f005bd9.js" as="script"><link rel="preload" href="/jwchatdoc/assets/js/2.0a6120b0.js" as="script"><link rel="preload" href="/jwchatdoc/assets/js/12.99033945.js" as="script"><link rel="prefetch" href="/jwchatdoc/assets/js/10.69421091.js"><link rel="prefetch" href="/jwchatdoc/assets/js/11.7a399bd7.js"><link rel="prefetch" href="/jwchatdoc/assets/js/13.279bab3c.js"><link rel="prefetch" href="/jwchatdoc/assets/js/14.2f230c3a.js"><link rel="prefetch" href="/jwchatdoc/assets/js/15.f9aa9fc4.js"><link rel="prefetch" href="/jwchatdoc/assets/js/16.3ba8d5b4.js"><link rel="prefetch" href="/jwchatdoc/assets/js/17.e53d4f10.js"><link rel="prefetch" href="/jwchatdoc/assets/js/18.bce088f4.js"><link rel="prefetch" href="/jwchatdoc/assets/js/19.f51d6632.js"><link rel="prefetch" href="/jwchatdoc/assets/js/20.15eb3f0e.js"><link rel="prefetch" href="/jwchatdoc/assets/js/21.a1303875.js"><link rel="prefetch" href="/jwchatdoc/assets/js/3.55e62092.js"><link rel="prefetch" href="/jwchatdoc/assets/js/4.9bd699fc.js"><link rel="prefetch" href="/jwchatdoc/assets/js/5.cab4c999.js"><link rel="prefetch" href="/jwchatdoc/assets/js/6.93ce79e4.js"><link rel="prefetch" href="/jwchatdoc/assets/js/7.6a0b259c.js"><link rel="prefetch" href="/jwchatdoc/assets/js/8.4b5ca820.js"><link rel="prefetch" href="/jwchatdoc/assets/js/9.c7a03d0b.js">
    <link rel="stylesheet" href="/jwchatdoc/assets/css/0.styles.88dd726d.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/jwchatdoc/" class="home-link router-link-active"><!----> <span class="site-name">JwChat</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/jwchatdoc/guide/" class="nav-link">
  使用
</a></div><div class="nav-item"><a href="/jwchatdoc/component/" class="nav-link router-link-active">
  组件
</a></div><div class="nav-item"><a href="/jwchatdoc/updateTip/" class="nav-link">
  更新
</a></div><div class="nav-item"><a href="https://gitee.com/CodeGI/chat" target="_blank" rel="noopener noreferrer" class="nav-link external">
  项目地址
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="http://codegi.gitee.io/jwchatdoc/demo/index.html" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Demo
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/jwchatdoc/guide/" class="nav-link">
  使用
</a></div><div class="nav-item"><a href="/jwchatdoc/component/" class="nav-link router-link-active">
  组件
</a></div><div class="nav-item"><a href="/jwchatdoc/updateTip/" class="nav-link">
  更新
</a></div><div class="nav-item"><a href="https://gitee.com/CodeGI/chat" target="_blank" rel="noopener noreferrer" class="nav-link external">
  项目地址
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="http://codegi.gitee.io/jwchatdoc/demo/index.html" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Demo
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav>  <ul class="sidebar-links"><li><a href="/jwchatdoc/component/chat.html" class="sidebar-link">基础组件 Chat</a></li><li><a href="/jwchatdoc/component/chatIndex.html" class="sidebar-link">chat组件界面</a></li><li><a href="/jwchatdoc/component/rightbox.html" class="sidebar-link">右边栏-仿QQ群</a></li><li><a href="/jwchatdoc/component/talk.html" aria-current="page" class="active sidebar-link">快捷回复组件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/jwchatdoc/component/talk.html#jwchat-talk" class="sidebar-link">JwChat-talk</a></li><li class="sidebar-sub-header"><a href="/jwchatdoc/component/talk.html#参数配置" class="sidebar-link">参数配置</a></li></ul></li><li><a href="/jwchatdoc/component/user.html" class="sidebar-link">用户组件</a></li><li><a href="/jwchatdoc/component/empty.html" class="sidebar-link">empty组件</a></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default" data-v-7bb6eb38 data-v-7bb6eb38><h1 id="快捷回复组件" data-v-7bb6eb38><a href="#快捷回复组件" class="header-anchor" data-v-7bb6eb38>#</a> 快捷回复组件</h1> <h2 id="jwchat-talk" data-v-7bb6eb38><a href="#jwchat-talk" class="header-anchor" data-v-7bb6eb38>#</a> JwChat-talk</h2> <JwChat-talk Talelist="快捷回复1,快捷回复2,快捷回复3,快捷回复4,快捷回复5,快捷回复6" config="[object Object]" class="box" data-v-7bb6eb38></JwChat-talk> <details class="custom-block details" data-v-7bb6eb38><summary data-v-7bb6eb38>点击查看代码</summary> <div class="language-vue extra-class" data-v-7bb6eb38><pre class="language-vue" data-v-7bb6eb38><code data-v-7bb6eb38>
<span class="token tag" data-v-7bb6eb38><span class="token tag" data-v-7bb6eb38><span class="token punctuation" data-v-7bb6eb38>&lt;</span>JwChat-talk</span> <span class="token attr-name" data-v-7bb6eb38>:Talelist</span><span class="token attr-value" data-v-7bb6eb38><span class="token punctuation attr-equals" data-v-7bb6eb38>=</span><span class="token punctuation" data-v-7bb6eb38>&quot;</span>talk<span class="token punctuation" data-v-7bb6eb38>&quot;</span></span> <span class="token attr-name" data-v-7bb6eb38>:config</span><span class="token attr-value" data-v-7bb6eb38><span class="token punctuation attr-equals" data-v-7bb6eb38>=</span><span class="token punctuation" data-v-7bb6eb38>&quot;</span>quickConfig<span class="token punctuation" data-v-7bb6eb38>&quot;</span></span> <span class="token attr-name" data-v-7bb6eb38>@event</span><span class="token attr-value" data-v-7bb6eb38><span class="token punctuation attr-equals" data-v-7bb6eb38>=</span><span class="token punctuation" data-v-7bb6eb38>&quot;</span>bindTalk<span class="token punctuation" data-v-7bb6eb38>&quot;</span></span> <span class="token punctuation" data-v-7bb6eb38>/&gt;</span></span>

<span class="token tag" data-v-7bb6eb38><span class="token tag" data-v-7bb6eb38><span class="token punctuation" data-v-7bb6eb38>&lt;</span>script</span><span class="token punctuation" data-v-7bb6eb38>&gt;</span></span><span class="token script" data-v-7bb6eb38><span class="token language-javascript" data-v-7bb6eb38>
<span class="token keyword" data-v-7bb6eb38>export</span> <span class="token keyword" data-v-7bb6eb38>default</span> <span class="token punctuation" data-v-7bb6eb38>{</span>
  <span class="token function" data-v-7bb6eb38>data</span> <span class="token punctuation" data-v-7bb6eb38>(</span><span class="token punctuation" data-v-7bb6eb38>)</span> <span class="token punctuation" data-v-7bb6eb38>{</span>
    <span class="token keyword" data-v-7bb6eb38>return</span> <span class="token punctuation" data-v-7bb6eb38>{</span>
      quickConfig<span class="token operator" data-v-7bb6eb38>:</span> <span class="token punctuation" data-v-7bb6eb38>{</span>
        nav<span class="token operator" data-v-7bb6eb38>:</span> <span class="token punctuation" data-v-7bb6eb38>[</span><span class="token string" data-v-7bb6eb38>'快捷回复'</span><span class="token punctuation" data-v-7bb6eb38>,</span> <span class="token string" data-v-7bb6eb38>'超级回复'</span><span class="token punctuation" data-v-7bb6eb38>]</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        showAdd<span class="token operator" data-v-7bb6eb38>:</span> <span class="token boolean" data-v-7bb6eb38>true</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        maxlength<span class="token operator" data-v-7bb6eb38>:</span> <span class="token number" data-v-7bb6eb38>200</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        showHeader<span class="token operator" data-v-7bb6eb38>:</span> <span class="token boolean" data-v-7bb6eb38>true</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        showDeleteBtn<span class="token operator" data-v-7bb6eb38>:</span> <span class="token boolean" data-v-7bb6eb38>true</span><span class="token punctuation" data-v-7bb6eb38>,</span>
      <span class="token punctuation" data-v-7bb6eb38>}</span><span class="token punctuation" data-v-7bb6eb38>,</span>
      talk<span class="token operator" data-v-7bb6eb38>:</span> <span class="token punctuation" data-v-7bb6eb38>[</span>
        <span class="token string" data-v-7bb6eb38>'快捷回复1'</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        <span class="token string" data-v-7bb6eb38>'快捷回复2'</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        <span class="token string" data-v-7bb6eb38>'快捷回复3'</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        <span class="token string" data-v-7bb6eb38>'快捷回复4'</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        <span class="token string" data-v-7bb6eb38>'快捷回复5'</span><span class="token punctuation" data-v-7bb6eb38>,</span>
        <span class="token string" data-v-7bb6eb38>'快捷回复6'</span><span class="token punctuation" data-v-7bb6eb38>,</span>
      <span class="token punctuation" data-v-7bb6eb38>]</span><span class="token punctuation" data-v-7bb6eb38>,</span>
    <span class="token punctuation" data-v-7bb6eb38>}</span>
  <span class="token punctuation" data-v-7bb6eb38>}</span><span class="token punctuation" data-v-7bb6eb38>,</span>
  methods<span class="token operator" data-v-7bb6eb38>:</span> <span class="token punctuation" data-v-7bb6eb38>{</span>
    <span class="token function" data-v-7bb6eb38>bindTalk</span> <span class="token punctuation" data-v-7bb6eb38>(</span><span class="token parameter" data-v-7bb6eb38>play</span><span class="token punctuation" data-v-7bb6eb38>)</span> <span class="token punctuation" data-v-7bb6eb38>{</span>
      console<span class="token punctuation" data-v-7bb6eb38>.</span><span class="token function" data-v-7bb6eb38>log</span><span class="token punctuation" data-v-7bb6eb38>(</span><span class="token string" data-v-7bb6eb38>'talk'</span><span class="token punctuation" data-v-7bb6eb38>,</span> play<span class="token punctuation" data-v-7bb6eb38>)</span>
    <span class="token punctuation" data-v-7bb6eb38>}</span><span class="token punctuation" data-v-7bb6eb38>,</span>
  <span class="token punctuation" data-v-7bb6eb38>}</span>
<span class="token punctuation" data-v-7bb6eb38>}</span>
</span></span><span class="token tag" data-v-7bb6eb38><span class="token tag" data-v-7bb6eb38><span class="token punctuation" data-v-7bb6eb38>&lt;/</span>script</span><span class="token punctuation" data-v-7bb6eb38>&gt;</span></span>
</code></pre></div></details> <h2 id="参数配置" data-v-7bb6eb38><a href="#参数配置" class="header-anchor" data-v-7bb6eb38>#</a> 参数配置</h2> <hr data-v-7bb6eb38> <h3 id="attribute" data-v-7bb6eb38><a href="#attribute" class="header-anchor" data-v-7bb6eb38>#</a> Attribute</h3> <table data-v-7bb6eb38><thead data-v-7bb6eb38><tr data-v-7bb6eb38><th data-v-7bb6eb38>参数</th> <th style="text-align:left;" data-v-7bb6eb38>说明</th> <th data-v-7bb6eb38>类型</th> <th data-v-7bb6eb38>可选值</th> <th data-v-7bb6eb38>默认值</th></tr></thead> <tbody data-v-7bb6eb38><tr data-v-7bb6eb38><td data-v-7bb6eb38>talk</td> <td style="text-align:left;" data-v-7bb6eb38>快捷回复内容</td> <td data-v-7bb6eb38>Array</td> <td data-v-7bb6eb38>-</td> <td data-v-7bb6eb38>[]</td></tr> <tr data-v-7bb6eb38><td data-v-7bb6eb38>config</td> <td style="text-align:left;" data-v-7bb6eb38>工具栏配置</td> <td data-v-7bb6eb38>Object</td> <td data-v-7bb6eb38>-</td> <td data-v-7bb6eb38>{}</td></tr></tbody></table> <h3 id="methods" data-v-7bb6eb38><a href="#methods" class="header-anchor" data-v-7bb6eb38>#</a> Methods</h3> <table data-v-7bb6eb38><thead data-v-7bb6eb38><tr data-v-7bb6eb38><th data-v-7bb6eb38>参数</th> <th data-v-7bb6eb38>说明</th> <th data-v-7bb6eb38>参数</th></tr></thead> <tbody data-v-7bb6eb38><tr data-v-7bb6eb38><td data-v-7bb6eb38>event</td> <td data-v-7bb6eb38>组件点击选中事件</td> <td data-v-7bb6eb38>{}</td></tr></tbody></table> <h4 id="config参数" data-v-7bb6eb38><a href="#config参数" class="header-anchor" data-v-7bb6eb38>#</a> <code data-v-7bb6eb38>config</code>参数</h4> <div class="language-json extra-class" data-v-7bb6eb38><pre class="language-json" data-v-7bb6eb38><code data-v-7bb6eb38><span class="token comment" data-v-7bb6eb38>// 格式</span>
<span class="token punctuation" data-v-7bb6eb38>{</span>
    nav<span class="token operator" data-v-7bb6eb38>:</span> <span class="token punctuation" data-v-7bb6eb38>[</span>'快捷回复'<span class="token punctuation" data-v-7bb6eb38>,</span> '超级回复'<span class="token punctuation" data-v-7bb6eb38>]</span><span class="token punctuation" data-v-7bb6eb38>,</span>
    showAddBtn<span class="token operator" data-v-7bb6eb38>:</span> <span class="token boolean" data-v-7bb6eb38>true</span><span class="token punctuation" data-v-7bb6eb38>,</span>
    showHeader<span class="token operator" data-v-7bb6eb38>:</span> <span class="token boolean" data-v-7bb6eb38>true</span><span class="token punctuation" data-v-7bb6eb38>,</span>
    showDeleteBtn<span class="token operator" data-v-7bb6eb38>:</span> <span class="token boolean" data-v-7bb6eb38>true</span><span class="token punctuation" data-v-7bb6eb38>,</span>
<span class="token punctuation" data-v-7bb6eb38>}</span>
</code></pre></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">2023/4/1 23:28:07</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="/jwchatdoc/component/rightbox.html" class="prev">
        右边栏-仿QQ群
      </a></span> <span class="next"><a href="/jwchatdoc/component/user.html">
        用户组件
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
    <script src="/jwchatdoc/assets/js/app.2f005bd9.js" defer></script><script src="/jwchatdoc/assets/js/2.0a6120b0.js" defer></script><script src="/jwchatdoc/assets/js/12.99033945.js" defer></script>
  </body>
</html>
